package HomeWork;
import java.util.Scanner;
public class Test02 {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        Student student=new Student();
        System.out.println("输入学生编号：");
        student.num=input.next();
        System.out.println("输入学生姓名：");
        student.name=input.next();
        System.out.println("输入学生性别：");
        student.sex=input.next();
        System.out.println("输入学生身高：");
        student.height=input.nextDouble();
        System.out.println("输入学生年龄：");
        student.age=input.nextInt();
        student.method();
    }
}
class Student{
    public String num;
    public String name;
    public String sex;
    public double height;
    public int age;

    public Student() {
    }

    public Student(String num, String name, String sex, double height, int age) {
        this.num = num;
        this.name = name;
        this.sex = sex;
        this.height = height;
        this.age = age;
    }
    public void method(){
        System.out.println("学生编号"+num+"学生姓名"+name+"学生性别"+sex+"学生身高"+height+"学生年龄"+age);
    }
}
